/*    */ package com.zimbra.cs.service.mail;
/*    */ 
/*    */ import com.zimbra.common.service.ServiceException;
/*    */ import com.zimbra.common.soap.Element;
/*    */ import com.zimbra.common.soap.MailConstants;
/*    */ import com.zimbra.cs.account.Provisioning;
/*    */ import com.zimbra.cs.account.Server;
/*    */ import com.zimbra.soap.ZimbraSoapContext;
/*    */ import java.util.Map;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class GetSpellDictionaries
/*    */   extends MailDocumentHandler
/*    */ {
/*    */   public Element handle(Element request, Map<String, Object> context)
/*    */     throws ServiceException
/*    */   {
/* 35 */     ZimbraSoapContext zc = getZimbraSoapContext(context);
/* 36 */     Server server = Provisioning.getInstance().getLocalServer();
/* 37 */     Element response = zc.createElement(MailConstants.GET_SPELL_DICTIONARIES_RESPONSE);
/*    */     
/* 39 */     for (String dictionary : server.getSpellAvailableDictionary()) {
/* 40 */       response.addElement("dictionary").setText(dictionary);
/*    */     }
/*    */     
/* 43 */     return response;
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/service/mail/GetSpellDictionaries.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */